Package com.yamilovs.insomnia.exporter.model

This package contains all the DTO models that describes Insomnia collection structure

Types

Link copied to clipboard
data class ApiSpec(workspace: Workspace, fileName: String) : ResourceBase
Link copied to clipboard
data class BaseEnvironment(workspace: Workspace, data: Map<String, Any>) : ResourceBase
Link copied to clipboard
class Collection(workspace: Workspace, apiSpec: ApiSpec, baseEnvironment: BaseEnvironment, environments: List<Environment>, requestGroups: List<RequestGroup>, requests: List<Request>)

Main insomnia Collection wrapper. Contains e.g. Workspace, ApiSpec, BaseEnvironment, Environments, RequestGroups and Requests

Link copied to clipboard
data class Environment(baseEnvironment: BaseEnvironment, name: String, data: Map<String, Any>, color: String?, isPrivate: Boolean, metaSortKey: Long) : ResourceBase

Environment resource

Link copied to clipboard
interface IRequestGroupParent
Link copied to clipboard
interface IRequestParent
Link copied to clipboard
interface IResource

This interface represents Insomnia resource in collection export

Link copied to clipboard
data class Request(parent: IRequestParent, url: String, name: String, description: String, method: Method, body: IBody, parameters: List<IParameter>, headers: List<IHeader>, authentication: IAuthentication, metaSortKey: Long, isPrivate: Boolean, settingStoreCookies: Boolean, settingSendCookies: Boolean, settingDisableRenderRequestBody: Boolean, settingEncodeUrl: Boolean, settingRebuildPath: Boolean, settingFollowRedirects: FollowRedirect) : ResourceBase
Link copied to clipboard
data class RequestGroup(parent: IRequestGroupParent, name: String, description: String, environment: Map<String, Any>, metaSortKey: Long) : ResourceBase, IRequestParent, IRequestGroupParent
Link copied to clipboard
abstract class ResourceBase(type: Type, parentId: String?) : IResource
Link copied to clipboard
enum Scope : Enum<Scope>
Link copied to clipboard
enum Type : Enum<Type>
Link copied to clipboard
data class Workspace(name: String, description: String) : ResourceBase, IRequestParent, IRequestGroupParent